﻿using Coldairarrow.Entity.PB;
using Coldairarrow.Util;
using Coldairarrow.Util.ClassLibrary;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.PB
{
    public partial interface IPB_Material_TempBusiness
    {
        Task<PageResult<PB_Material_Temp>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<PB_Material_Temp> GetTheDataAsync(string id);
        Task AddDataAsync(PB_Material_Temp data);
        Task UpdateDataAsync(PB_Material_Temp data);
        Task DeleteDataAsync(List<string> ids);
        Task AddDataExlAsync(List<PB_Material_Temp> list, RedisOptions _redisOptions, MongoDBOptions _mongodbOptions);
        Task<PageResult<PB_Material_TempDTO>> QueryDataListAsync(PageInput<PBMateria_TemplConditionDTO> input);
    }
    public class PB_Material_TempDTO : PB_Material_Temp {
        public string MaterialTypeName { get; set; }

        public string UnitGroupName { get; set; }

        public string ProcecureName { get; set; }

        public string Typeid { get; set; }

        public string MaterialTypeCode { get; set; }
    }

    public class PBMateria_TemplConditionDTO
    {
        public string StorId { get; set; }
        public string MaterialTypeId { set; get; }

        public string OrderId { get; set; }

        public string Keyword { set; get; }
    }
}